package sv.gob.mh.dgii.model;

// Generated Aug 26, 2010 2:22:26 PM by Hibernate Tools 3.2.5.Beta

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CcGestionOmis generated by hbm2java
 */
@Entity
@Table(name = "CC_GESTION_OMIS", schema = "CTACTE")
@SequenceGenerator(name="SEQ_CC_GESTION_OMIS" , sequenceName="SEQ_CC_GESTION_OMIS")
public class CcGestionOmis implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -324781693553500187L;
	private Long cgestion;
	private Date fhinicio;
	private Date fhfin;
	private String cestado;
	private String nit;
	private String cusuario;
	private String sobservacion;
	private String carea;
	
	private Set<CcGestionOmisDet> ccGestionOmisDets = new HashSet<CcGestionOmisDet>(
			0);

	public CcGestionOmis() {
	}

	public CcGestionOmis(Long cgestion, Date fhinicio, String cestado,
			String nit, String cusuario) {
		this.cgestion = cgestion;
		this.fhinicio = fhinicio;
		this.cestado = cestado;
		this.nit = nit;
		this.cusuario = cusuario;
	}

	public CcGestionOmis(Long cgestion, Date fhinicio, Date fhfin,
			String cestado, String nit, String cusuario, String sobservacion,
			Set<CcGestionOmisDet> ccGestionOmisDets) {
		this.cgestion = cgestion;
		this.fhinicio = fhinicio;
		this.fhfin = fhfin;
		this.cestado = cestado;
		this.nit = nit;
		this.cusuario = cusuario;
		this.sobservacion = sobservacion;
		this.ccGestionOmisDets = ccGestionOmisDets;
	}

	@Id
	@Column(name = "C_GESTION", nullable = false, precision = 10, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_CC_GESTION_OMIS")
	public Long getCgestion() {
		return this.cgestion;
	}

	public void setCgestion(Long cgestion) {
		this.cgestion = cgestion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_INICIO", nullable = false, length = 7)
	public Date getFhinicio() {
		return this.fhinicio;
	}

	public void setFhinicio(Date fhinicio) {
		this.fhinicio = fhinicio;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_FIN", length = 7)
	public Date getFhfin() {
		return this.fhfin;
	}

	public void setFhfin(Date fhfin) {
		this.fhfin = fhfin;
	}

	@Column(name = "C_ESTADO", nullable = false, length = 2)
	public String getCestado() {
		return this.cestado;
	}

	public void setCestado(String cestado) {
		this.cestado = cestado;
	}

	@Column(name = "NIT", nullable = false, length = 14)
	public String getNit() {
		return this.nit;
	}

	public void setNit(String nit) {
		this.nit = nit;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Column(name = "S_OBSERVACION", length = 255)
	public String getSobservacion() {
		return this.sobservacion;
	}

	public void setSobservacion(String sobservacion) {
		this.sobservacion = sobservacion;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "ccGestionOmis")
	public Set<CcGestionOmisDet> getCcGestionOmisDets() {
		return this.ccGestionOmisDets;
	}

	public void setCcGestionOmisDets(Set<CcGestionOmisDet> ccGestionOmisDets) {
		this.ccGestionOmisDets = ccGestionOmisDets;
	}

	/**
	 * @return the carea
	 */
	@Column(name = "C_AREA", length = 10)
	public String getCarea() {
		return carea;
	}

	/**
	 * @param carea the carea to set
	 */
	public void setCarea(String carea) {
		this.carea = carea;
	}
	
	
}
